package autokeyboard.gui;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import javax.swing.JDialog;
import javax.swing.JFrame;

@SuppressWarnings("serial")
public class DialogTemp extends JDialog
{

	public DialogTemp(JFrame frame)
	{
		super(frame, true);
		this.setSize(10, 10);
		this.setLocation(15000, 15000);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.addKeyListener(new KeyAdapter()
		{
			@Override
			public void keyPressed(KeyEvent evt)
			{
				if(evt.getKeyCode() == KeyEvent.VK_ESCAPE)
					dispose();
			}
		});
	}
}
